package com.siti.kindnessplatform.base.ctrl;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.siti.kindnessplatform.base.biz.InfoApplyBiz;
import com.siti.kindnessplatform.base.po.InfoApply;
import com.siti.kindnessplatform.common.CommonResult;

@RestController
@RequestMapping("infoApply")
public class InfoApplyCtrl {

	@Resource
    private InfoApplyBiz infoApplyBiz;

    @PostMapping(value = "save")
    public CommonResult save(InfoApply infoApply) {
    	infoApply.setUpdateTime(new Date());
        int flag=infoApplyBiz.save(infoApply);
        if(flag==1){
            return new CommonResult("success","提交成功");
        }else{
            return new CommonResult("error","提交失败");
        }
    }
}
